package com.example.springbootdeom.serviceImpl;

import com.example.springbootdeom.dao.UserDao;
import com.example.springbootdeom.entity.User;
import com.example.springbootdeom.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User login(String username,String password)
    {
        return userDao.login(username,password);
    }

    @Override
    public User getUser(Integer id) {
        return userDao.getUser(id);
    }
}
